package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 金融-贷款-保险(LoansInsurance)表实体类
 *
 * @author yxy
 * @since 2024-11-21 10:33:43
 */
@Data
@ApiModel("金融-贷款-保险")
@TableName(value = "tb_loans_insurance")
public class LoansInsurance extends Model<LoansInsurance> implements Serializable {
    private static final long serialVersionUID = 837587002104723937L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("产品名称")
    private String name;

    @ApiModelProperty("描述")
    private String remark;

    @ApiModelProperty("机构名称")
    private String organization;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("类型0贷款 1保险")
    private Integer type;

    @ApiModelProperty("图片")
    private String img;

    @ApiModelProperty("详情")
    private String info;

    @ApiModelProperty("封面")
    private String cover;

    @ApiModelProperty("贷款利率")
    private BigDecimal interestRate;

    @ApiModelProperty("期限")
    private BigDecimal deadline;

    @ApiModelProperty("贷款额度")
    private BigDecimal quota;

    @ApiModelProperty("申请人群")
    private String applicantPool;

    @ApiModelProperty("保险费用")
    private BigDecimal premium;

    @ApiModelProperty("保险额度")
    private BigDecimal coverage;

}
